Mastering Microsoft Dynamics 365 Customer Engagement: An advanced guide to developing and customizing CRM solutions to improve your business applications, 2nd Edition by Deepesh Somani
Author:Deepesh Somani [Somani, Deepesh]
Language: eng
Format: mobi, epub
Tags: COM088000 - COMPUTERS / System Administration / General, COM051380 - COMPUTERS / Programming / Microsoft, COM051430 - COMPUTERS / Software Development and Engineering / Project Management
Publisher: Packt Publishing
Published: 2019-02-27T16:00:00+00:00
Source code
Now, let's examine the complete code. The comments given explain the relevant steps in the code:
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script type="text/javascript" src="ClientGlobalContext.js.aspx">
</script><script type="text/jscript" src="
https://dynamisitycrm.crm8.dynamics.com/WebResources/new_jquerymin"></script>
<script type="text/jscript">
//Function called when the web resource is loaded
$(document).ready(function () {
var req = new XMLHttpRequest();//Initializing request
req.open("GET", window.parent.Xrm.Page.context.getClientUrl() +
"/api/data/v9.0/EntityDefinitions(LogicalName='contact')
/Attributes", true); //Opens request
//Sets request Headers
req.setRequestHeader("OData-MaxVersion", "4.0");
req.setRequestHeader("OData-Version", "4.0");
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("Prefer", "odata.include-annotations="*"");
//Function to detect ready state change
req.onreadystatechange = function () {
if (this.readyState === 4) {
req.onreadystatechange = null;
//Check if request completed successfully
if (this.status === 200) {
var result = JSON.parse(this.response);//Parse JSON response
var index = 1;
for (var i = 0; i < result.value.length; i++) {
var schemaName = result.value[i].SchemaName; //Gets schemaname from response.
$("#Entities").append("<option value='" + index + "'>" + schemaName + "</option>");
index = index + 1; }
}
else {
Xrm.Utility.alertDialog(this.statusText); }
} };
req.send();
});
</script>
<style type="text/css">
.select {
font-size: 12px;
font-family: Segoe 020UI;
color: #444444;
margin: -8px; }
.control {
margin-left: 108px;
font-size: 12px;
height: 23px; }
</style>
</head>
<body>
<div class="select">
<label for="Entities">Fields</label>
<select name="Entities" id="Entities" class="control">
<option value="0">--<options>
</select>
</div>
</body>
</html>
Let's perform the following steps:
Navigate to Settings | Customization | Customize the System and select Web Resources. Click New.
Name the web resource as contactdynamicoptionset. Select Type as HTML and paste the preceding code in the Text Editor link. Click on SAVE and PUBLISH:
Download
Mastering Microsoft Dynamics 365 Customer Engagement: An advanced guide to developing and customizing CRM solutions to improve your business applications, 2nd Edition by Deepesh Somani.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Personalized inhaled bacteriophage therapy for treatment of multidrug-resistant Pseudomonas aeruginosa in cystic fibrosis by unknow(183181)
CONSORT 2025 statement: updated guideline for reporting randomized trials by unknow(91440)
Critical evaluation of the ProfiLER-02 study design and outcomes by Vivek Subbiah & Razelle Kurzrock(91132)
Cardiac gene therapy makes a comeback by Oliver J. Müller & Susanne Hille & Anca Kliesow Remes(90876)
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(74466)
Unveiling the design rules for tunable emission in graphene quantum dots: A high-throughput TDDFT and machine learning perspective by Şener Özönder & Mustafa Coşkun Özdemir & Caner Ünlü(50912)
A yeast-based oral therapeutic delivers immune checkpoint inhibitors to reduce intestinal tumor burden by unknow(40285)
Covalent hitchhikers guide proteins to the nucleus by Alexander F. Russell & Madeline F. Currie & Champak Chatterjee(40225)
Meet the Authors: Christopher R. Mansfield and Emily R. Derbyshire by Christopher R. Mansfield & Emily R. Derbyshire(40111)
Alkaline-earth metals promote propane dehydrogenation with carbon dioxide through geometric effects: Altering the reaction pathway by unknow(32754)
Induced iron vacancies boosting FeOOH loaded on sustainable Fenton-like collagen fiber membrane for efficient removal of emerging contaminants by unknow(32537)
Efficient electric-field-assisted photochemical conversion of methane to n-propanol exclusively over penetrated TiO2Ti hollow fibers by Guanghui Feng(32472)
Bi2SiO5 nanosheets as piezo-photocatalyst for efficient degradation of 2,4-Dichlorophenol by Hangyu Shi & Yifu Li & Lishan Zhang & Guoguan Liu & Qian Zhang & Xuan Ru & Shan Zhong(32408)
A novel NDIPTA organic heterojunction photocatalyst with built-in electric field for efficient hydrogen production by Jiahui Yang & Baojun Ma & Yongfa Zhu(32381)
Enhanced conversion of methane to liquid-phase oxygenates via hollow ferrite nanotube@horseradish peroxidase based photoenzymatic catalysis by Jun Duan & Shiying Fan & Xinyong Li & Shaomin Liu(32348)
Ordered macroporous superstructure of defective carbon adorned with tiny cobalt sulfide for selective electrocatalytic hydrogenation of cinnamaldehyde by Xiao-Shi Yuan & Sheng-Hua Zhou & San-Mei Wang & Wenbo Wei & Xiaofang Li & Xin-Tao Wu & Qi-Long Zhu(32269)
What's Done in Darkness by Kayla Perrin(27163)
Topological analysis of non-conjugated ethylene oxide cored dendrimers decorated with tetraphenylethylene: Insights from degree-based descriptors using the polynomial approach by A Theertha Nair & D Antony Xavier & Annmaria Baby & S Akhila(26552)
Investigation of mechanical and self-healing properties of hydroxyl-terminated polybutadiene functionalized with 2-ureido-4-pyrimidinone by Mohsen Kazazi & Mehran Hayaty & Ali Mousaviazar(26484)